
package cn.edu.scau.cmi.hombio.web.rest;

import org.junit.Test;

import org.junit.runner.RunWith;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.beans.factory.support.DefaultListableBeanFactory;

import org.springframework.context.ApplicationContext;

import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;

import org.springframework.test.context.ContextConfiguration;

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.RequestScope;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.context.request.SessionScope;

/**
 * Unit test for the <code>MedicineRestController</code> controller.
 *
 * @see cn.edu.scau.cmi.hombio.web.rest.MedicineRestController
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {
		"file:./resources/pigRs-security-context.xml",
		"file:./resources/pigRs-service-context.xml",
		"file:./resources/pigRs-dao-context.xml",
		"file:./resources/pigRs-web-context.xml" })
public class MedicineRestControllerTest {
	/**
	 * The Spring application context.
	 *
	 */
	private ApplicationContext context;

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForReportMedicineId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idpreventionTypesForReportMedicineId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForReportMedicineId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForReportMedicineId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idpreventionTypesForReportMedicineId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForReportMedicineId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForReportMedicineId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idpreventionTypesForReportMedicineId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForReportMedicineId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForReportMedicineIdpreventiontype_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idpreventionTypesForReportMedicineIdpreventiontype_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForReportMedicineId/{preventiontype_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForReportMedicineIdpreventiontype_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idpreventionTypesForReportMedicineIdpreventiontype_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForReportMedicineId/{preventiontype_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineStorageDetails()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idmedicineStorageDetails() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineStorageDetails");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineStorageDetails()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idmedicineStorageDetails() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineStorageDetails");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineStorageDetails()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idmedicineStorageDetails() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineStorageDetails");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineStorageDetailsmedicinestoragedetail_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idmedicineStorageDetailsmedicinestoragedetail_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineStorageDetails/{medicinestoragedetail_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineStorageDetailsmedicinestoragedetail_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idmedicineStorageDetailsmedicinestoragedetail_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineStorageDetails/{medicinestoragedetail_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineSuppliers()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idmedicineSuppliers() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineSuppliers");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineSuppliers()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idmedicineSuppliers() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineSuppliers");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineSuppliers()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idmedicineSuppliers() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineSuppliers");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineSuppliersmedicinesupplier_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idmedicineSuppliersmedicinesupplier_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineSuppliers/{medicinesupplier_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineSuppliersmedicinesupplier_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idmedicineSuppliersmedicinesupplier_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineSuppliers/{medicinesupplier_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureTaskMedicines()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idcureTaskMedicines() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureTaskMedicines");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureTaskMedicines()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idcureTaskMedicines() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureTaskMedicines");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureTaskMedicines()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idcureTaskMedicines() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureTaskMedicines");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureTaskMedicinescuretaskmedicine_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idcureTaskMedicinescuretaskmedicine_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureTaskMedicines/{curetaskmedicine_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureTaskMedicinescuretaskmedicine_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idcureTaskMedicinescuretaskmedicine_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureTaskMedicines/{curetaskmedicine_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForMedicineId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idpreventionTypesForMedicineId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForMedicineId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForMedicineId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idpreventionTypesForMedicineId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForMedicineId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForMedicineId()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idpreventionTypesForMedicineId() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForMedicineId");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForMedicineIdpreventiontype_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idpreventionTypesForMedicineIdpreventiontype_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForMedicineId/{preventiontype_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idpreventionTypesForMedicineIdpreventiontype_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idpreventionTypesForMedicineIdpreventiontype_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/preventionTypesForMedicineId/{preventiontype_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureMedicines()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idcureMedicines() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureMedicines");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureMedicines()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idcureMedicines() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureMedicines");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureMedicines()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idcureMedicines() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureMedicines");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureMedicinescuremedicine_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idcureMedicinescuremedicine_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureMedicines/{curemedicine_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idcureMedicinescuremedicine_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idcureMedicinescuremedicine_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/cureMedicines/{curemedicine_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineTakeDetails()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idmedicineTakeDetails() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineTakeDetails");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineTakeDetails()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicinemedicine_idmedicineTakeDetails() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineTakeDetails");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineTakeDetails()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicinemedicine_idmedicineTakeDetails() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineTakeDetails");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineTakeDetailsmedicinetakedetail_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_idmedicineTakeDetailsmedicinetakedetail_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineTakeDetails/{medicinetakedetail_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_idmedicineTakeDetailsmedicinetakedetail_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_idmedicineTakeDetailsmedicinetakedetail_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}/medicineTakeDetails/{medicinetakedetail_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicine()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicine() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void GetMedicinemedicine_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicine()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PutMedicine() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicine()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void PostMedicine() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Test <code>Medicinemedicine_id()</code>.
	 */
	@Test
	@SuppressWarnings("unused")
	public void DeleteMedicinemedicine_id() throws Exception {
		MockHttpServletRequest request = getMockHttpServletRequest();
		request.setRequestURI("/Medicine/{medicine_id}");
		MockHttpServletResponse response = getMockHttpServletResponse();

		// Get the singleton controller instance
		MedicineRestController controller = (MedicineRestController) context.getBean("MedicineRestController");

		// TODO Invoke method and Assert return values

	}

	/**
	 * Autowired to set the Spring application context.
	 *
	 */
	@Autowired
	public void setContext(ApplicationContext context) {
		this.context = context;
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope());
		((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new RequestScope());
	}

	/**
	 * Returns a mock HttpServletRequest object.
	 *
	 */
	private MockHttpServletRequest getMockHttpServletRequest() {
		MockHttpServletRequest request = new MockHttpServletRequest();
		ServletRequestAttributes attributes = new ServletRequestAttributes(request);
		RequestContextHolder.setRequestAttributes(attributes);
		return request;
	}

	/**
	 * Returns a mock HttpServletResponse object.
	 *
	 */
	private MockHttpServletResponse getMockHttpServletResponse() {
		return new MockHttpServletResponse();
	}
}